{include file="header.html"}

<div class="page-header">
	<h6>
		国家馆管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			国家馆列表
		</small>
	</h6>
</div><!-- /.page-header -->

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="country" />
<input type="hidden" name="act" id="act" value="index" />
<input type="text" class="input-medium" placeholder="关键词" name="keyword" value="{$keyword}" /> 
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>名称</th>
			<th>英文名</th>
			<th>国旗</th>
			<th>备注</th>
			<th>排序</th>
			<th>状态</th>
			<th>点击次数</th>
			<th>添加时间</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		{foreach from=$rs item=row}
		<tr>
			<td>{$row.id}</td>
			<td><a href="?app=country&act=edit&id={$row.id}" title="{$row.name}">{$row.name|truncate:10}</a></td>
			<td><a href="?app=country&act=edit&id={$row.id}" title="{$row.name_english}">{$row.name_english|truncate:10}</a></td>
			<td><img src="{if $row.flag_pic !== ''}{$row.flag_pic}{else}/images/nopic.png{/if}" style="width:100px;"></td>
			<td>{$row.memo|truncate:10}</td>
			<td>{$row.sort}</td>
			<td>{if  $row.status == 1} 显示 {else} 隐藏 {/if}</td>
			<td>{$row.clicks}</td>
			<td>{$row.add_time|date_format:"%Y-%m-%d"}</td>
			<td>
				<a href="?app=country&act=edit&id={$row.id}">
					<button class="btn btn-xs btn-info">
					<i class="ace-icon fa fa-pencil bigger-120"></i>
				</button>
				</a>
				<a href="?app=country&act=delete&id={$row.id}" class="delete">
					<button class="btn btn-xs btn-danger">
					<i class="ace-icon fa fa-trash-o bigger-120"></i>
				</button>
				</a>
			</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		{/foreach}	
		
	</tbody>
</table>
	<div class="mypage" style="text-align:right">
			共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
	</div>
{include file="footer.html"}